package com.kingdee.eas.mx.qa;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import com.kingdee.bos.dao.IObjectValue;



public abstract class AbstractQualityFacadeControllerBean extends AbstractBizControllerBean implements QualityFacadeController
{
    protected AbstractQualityFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("4D72D579");
    }

    public boolean setSave(Context ctx, IObjectValue objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c51ddc8f-e364-4a36-a6ad-c4f306dfb33a"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setSave(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setSave(Context ctx, IObjectValue objectPK) throws BOSException
    {    	
        return false;
    }

    public boolean setSubmit(Context ctx, IObjectValue objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("25724e6a-efc3-49bd-afd3-57fd079ec1db"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setSubmit(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setSubmit(Context ctx, IObjectValue objectPK) throws BOSException
    {    	
        return false;
    }

    public boolean setUnaudit(Context ctx, IObjectValue objectPK) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("71dc9a69-89d5-4ba2-8282-79caad3c8508"), new Object[]{ctx, objectPK});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_setUnaudit(ctx, objectPK);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _setUnaudit(Context ctx, IObjectValue objectPK) throws BOSException
    {    	
        return false;
    }

}